/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-04-23
 * Time: 19:55
 */
public class Test {
    public static void main(String[] args) {
        char a = 'a';
        char b = '丁';
        System.out.println(a);
        System.out.println(b);
    }
    public static void main9(String[] args) {
        int a = 12345;
        String str = String.valueOf(a);//将整形转换为字符串
        System.out.println(str);
    }
    public static void main8(String[] args) {
        String a = "123";
        int b = Integer.parseInt(a);//将字符串转换为整形
        System.out.println(b+1);
    }
    public static void main7(String[] args) {
        boolean a = true;
        System.out.println(a);
    }
    public static void main6(String[] args) {
        float a = 12.5f;//默认为double 加f代表为float
        System.out.println(a);
    }
    public static void main5(String[] args) {
        //双精度 double
        double a = 12.5;
        System.out.println(a);
    }
    public static void main4(String[] args) {
        //字节类型 byte -2^7 ~ 2^7-1
        byte a = 12;
        System.out.println(Byte.MIN_VALUE);
        System.out.println(Byte.MAX_VALUE);
    }
    public static void main3(String[] args) {
        //长整形 long -2^15 ~ 2^15-1
        long a = 1L;
        System.out.println(a);
        System.out.println(Long.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);
    }
    public static void main2(String[] args) {
        //短整型 short -2^7 ~ 2^7-1
        short a = 1;
        System.out.println(Short.MIN_VALUE);
        System.out.println(Short.MAX_VALUE);
    }
    public static void main1(String[] args) {
        //整形 int -2^15 ~ 2^15-1
        int a = 10;
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Integer.MAX_VALUE);
    }
}

